import {get,post,del,put} from './request'
//角色相关接口
export const page=(data: object)=>get('/system/role/page',data);
export const list=(data: object)=>get('/system/role/list',data);
export const info=(param: any)=>get('/system/role/get/'+param,null);
export const save=(data: object)=>post('/system/role/add',data);
export const assignPermission=(data: object)=>post('/system/role/assignPermission',data);
export const edit=(data: object)=>put('/system/role/update',data);
export const remove=(param: any)=>del('/system/role/remove',param);
export const assignUsers=(data: object)=>post('/system/role/assignUsers',data);
export const unAssignUsers=(param: any)=>del('/system/role/unAssignUsers',param);